﻿using Common.Library.Db;
using SpiderCore.Loggers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SpiderCore.DB
{
    public class MongoDb : IDB
    {
        /// <summary>
        /// 初始化日志类型
        /// </summary>
        private readonly ISpiderLogger log = new SpiderMongoDBLog(typeof(MongoDb));
        MongoDBHelper db = new MongoDBHelper();

        public T Get<T>(string key, object obj)
        {
            throw new NotImplementedException();
        }

        public bool Remove(string key)
        {
            throw new NotImplementedException();
        }

        public bool Set<T>(string key, T t) where T : class
        {
            return db.AddSignleObject<T>(t);
        }
    }
}
